package com.common.repository.casemanage;

import com.common.entity.casemanage.CaseQualityFlowEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author johnny
 */
public interface CaseQualityFlowRepository extends JpaRepository<CaseQualityFlowEntity, Long> {


    List<CaseQualityFlowEntity> findByCaseIdAndType(Long caseId, String type);

    CaseQualityFlowEntity findByIdAndType(Long id, String type);

    Long countByPersonalId(Long personalId);
}